import Vue from 'vue'
import VueRouter from 'vue-router'
import GoodsList from '@/components/GoodsList.vue'
import ShopCart from '@/components/ShopCart.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'GoodsList',
    component: GoodsList
  },
  {
    path: '/ShopCart',
    name: 'ShopCart',
    component: ShopCart
  }
]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
